package com.njym.java.security.app.biz;

import com.github.pagehelper.PageHelper;
import com.njym.java.security.app.entity.ContactRecord;
import com.njym.java.security.app.mapper.ContactRecordMapper;
import com.njym.java.security.common.biz.BaseBiz;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 
 *
 * @author lijie
 * @email 717057076@qq.com
 * @date 2019-11-30 12:24:50
 */
@Service
public class ContactRecordBiz extends BaseBiz<ContactRecordMapper, ContactRecord> {

    @Resource
    private  ContactRecordMapper contactRecordMapper;

    public List<ContactRecord> queryContactRecord(Integer page, Integer limit,Integer fid,Integer netUserId){
        PageHelper.startPage(page, limit);
        return contactRecordMapper.queryContactRecord(fid,netUserId);
    }

    public int countContactRecord(Integer  fid){
        return contactRecordMapper.countContactRecord(fid);
    }
}